-------------------------------------------------------------------------------
Example:  SPDIF Tx-Rx Loopback
Target:   ADSP-21369
Date:     May 2nd, 2007
Tools:    VisualDSP++ 4.5
Hardware: ADSP-21369 EZ-KIT LITE
-------------------------------------------------------------------------------

SPDIF Tx-Rx Loopback

SPORT 0 supplies the I2S data stored in the transmit buffer in the internal  memory,
to the SPDIF Tx. The DIT from SPDIF TX is fed back to DIR pin of S/PDIF RX. SPORT 1
receives the data from SPDIF Rx out and transfers the content to a recieve buffer in 
internal memory.The SPDIF Tx and SPORT0 recieve their bit clock and Frame sync from 
PCG A. SPDIF Tx recieves its oversampling clock from PCG B. 
-------------------------------------------------------------------------------
Instructions:Download the executable to the EZ-KIT. The data in the recieve buffer must 
match the data in the transmit buffer.
-------------------------------------------------------------------------------
Source Files contained in this directory:
main.c                 Calls initialization routines then waits for interrupts
configdai.c            Initializes the SRU & DAI pins
PCG_A_B_OnDAI.c        Connects the PCG outputs to DAI pins
SPDIF RXtoSPORT1SRU.c  Connects the SPDIF Rx outputs to DAI pins
SPDIF_RxConfig.c       Connects DIT to DIR
SPDIF RX-TX Loopback.dpj    VisualDSP Project File
-------------------------------------------------------------------------------
Dependencies contained in VisualDSP++ default include path:
def21369.h             Header with constants for the SHARC
SRU.h                  Macro to simplify programming the SRU & DAI pins
cdef21369.h            Header with constants for the SHARC            
signal.h               Header file to handle interrupts (C runtime)
*******************************************************************************
Analog Devices, Inc.
DSP Division
Three Technology Way
Norwood, MA 02062

(c) 2003 Analog Devices, Inc.  All rights reserved.
*******************************************************************************

